<script type="text/javascript">
<#assign maxX=0>	
<#assign maxY=0>	
<#list chart.chartDataList as row >
  	<#if maxX<row?first >
	<#assign maxX=row?first>
  	</#if>	
  	<#if maxY<row?last >
	<#assign maxY=row?last>
  	</#if>	
</#list>	
	var lineChart${chart.id} = new JSChart('${chart.id}', 'line');
	lineChart${chart.id}.patchMbString();
	lineChart${chart.id}.setTitleFontSize(14);	
	lineChart${chart.id}.setTitle("${chart.title}");
	lineChart${chart.id}.setAxisNameX('${chart.x.display}');
	lineChart${chart.id}.setAxisNameY('${chart.y.display}');	
	lineChart${chart.id}.setDataArray(${resultDatas}, 'green');
	lineChart${chart.id}.setAxisPaddingBottom(40);
	lineChart${chart.id}.setTextPaddingBottom(10);
	lineChart${chart.id}.setAxisValuesNumberY(5);
	lineChart${chart.id}.setAxisValuesFontSize(11);
	lineChart${chart.id}.setIntervalStartY(0);
	lineChart${chart.id}.setIntervalEndY(${maxY});
	lineChart${chart.id}.setIntervalStartX(0);	
	lineChart${chart.id}.setAxisValuesNumberX(10);
	lineChart${chart.id}.setShowXValues(true);
	lineChart${chart.id}.setTitleColor('#454545');
	lineChart${chart.id}.setAxisValuesColor('#454545');
	lineChart${chart.id}.setLineColor('#A4D314', 'green');
	lineChart${chart.id}.setLineColor('#BBBBBB', 'gray');
<#list chart.chartDataList as row >
	lineChart${chart.id}.setTooltip([${row?first}]);	
</#list>	
	lineChart${chart.id}.setFlagColor('#9D16FC');
	lineChart${chart.id}.setFlagRadius(4);
	lineChart${chart.id}.setBackgroundImage('chart_bg.jpg');
	lineChart${chart.id}.setSize(${chart.width},${chart.height});
	lineChart${chart.id}.draw();	
</script>
